Skip to content

Commit 627b976

Browse files
author
Gowtham
committed
corrected Strict Validation documentation
1 parent 308b6c5 commit 627b976

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/getting_started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,15 +463,15 @@ try:
463463
first_name="Andrew",
464464
last_name="Brookins",
465465
466-
join_date="2020-01-02", # <- A date as a string shouldn't work now!
467-
age="38"
466+
join_date="2020-01-02",
467+
age="38" # <- Age as a string shouldn't work now!
468468
)
469469
except ValidationError as e:
470470
print(e)
471471
"""
472472
pydantic.error_wrappers.ValidationError: 1 validation error for Customer
473-
join_date
474-
Value must be a datetime.date object (type=value_error)
473+
age
474+
Value is not a valid integer (type=type_error.integer)
475475
"""
476476
```
477477

0 commit comments

Comments
 (0)