Work on docs, getting started guide
This commit is contained in:
parent
ad6a323fb8
commit
f44b7fa664
10 changed files with 434 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Validation
|
||||
|
||||
Redis OM uses [Pydantic](pydantic-url) behind the scenes to validate data at runtime, based on the model's type annotations.
|
||||
Redis OM uses [Pydantic][pydantic-url] behind the scenes to validate data at runtime, based on the model's type annotations.
|
||||
|
||||
## Basic Type Validation
|
||||
|
||||
|
|
@ -68,4 +68,6 @@ Once again, we get the valiation error:
|
|||
pydantic.error_wrappers.ValidationError: 1 validation error for Customer
|
||||
email
|
||||
value is not a valid email address (type=value_error.email)
|
||||
```
|
||||
```
|
||||
|
||||
[pydantic-url]: https://github.com/samuelcolvin/pydantic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue