Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Custom Validator section to Validation docs #935

Merged
merged 8 commits into from
Nov 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update docs/basics/validation.md
  • Loading branch information
0xTim committed Nov 9, 2023
commit 31fbda3a676fa440ea2c4164dab0c773824b6f1e
2 changes: 1 addition & 1 deletion docs/basics/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Validators can also be combined to build complex validations using operators.

## Custom Validators

Creating a custom validator for zip codes allows you to extend the functionality of your validation framework. In this section, we'll walk you through the steps to create a custom validator for validating zip codes.
Creating a custom validator for zip codes allows you to extend the functionality of the validation framework. In this section, we'll walk you through the steps to create a custom validator for validating zip codes.

First create a new type to represent the `ZipCode` validation results. This struct will be responsible for reporting whether a given string is a valid zip code.

Expand Down