Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremySkinner committed Feb 13, 2023
1 parent e6239df commit d7d3599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/specific-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ validator.Validate(customer, options =>

In the above example only the rule for the `Surname` property will be executed.

When working with sub-properties of collections, you can use a wildcard indexer (`[]`) to indicat all items of a collection. For example, if you wanted to validate the `Cost` property of every order, you could use the following:
When working with sub-properties of collections, you can use a wildcard indexer (`[]`) to indicate all items of a collection. For example, if you wanted to validate the `Cost` property of every order, you could use the following:

```csharp
var validator = new CustomerValidator();
Expand Down

3 comments on commit d7d3599

@Lug16
Copy link

@Lug16 Lug16 commented on d7d3599 Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this option still applicable, I don't see the parameter "options" in Validate anymore. Am I missing something?

@JeremySkinner
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s an extension method. Make sure you’ve imported the namespace.

@Lug16
Copy link

@Lug16 Lug16 commented on d7d3599 Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s an extension method. Make sure you’ve imported the namespace.

You're so right... "using FluentValidation;" made the magic... Sorry, my bad.

Please sign in to comment.