Skip to content

Commit

Permalink
Fix validator doc format
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Aug 7, 2023
1 parent bd725c7 commit d407295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/validators.md
Expand Up @@ -59,7 +59,7 @@ The same approach can be used for dict keys, etc.

### Before, After, Wrap and Plain validators

Pydantic provides multiple types of validator functions.
Pydantic provides multiple types of validator functions:

* `After` validators run after Pydantic's internal parsing. They are generally more type safe and thus easier to implement.
* `Before` validators run before Pydantic's internal parsing and validation (e.g. coercion of a `str` to an `int`). These are more flexible than `After` validators since they can modify the raw input, but they also have to deal with the raw input, which in theory could be any arbitrary object.
Expand Down

0 comments on commit d407295

Please sign in to comment.