We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308b6c5 commit 627b976Copy full SHA for 627b976
docs/getting_started.md
@@ -463,15 +463,15 @@ try:
463
first_name="Andrew",
464
last_name="Brookins",
465
email="[email protected]",
466
- join_date="2020-01-02", # <- A date as a string shouldn't work now!
467
- age="38"
+ join_date="2020-01-02",
+ age="38" # <- Age as a string shouldn't work now!
468
)
469
except ValidationError as e:
470
print(e)
471
"""
472
pydantic.error_wrappers.ValidationError: 1 validation error for Customer
473
- join_date
474
- Value must be a datetime.date object (type=value_error)
+ age
+ Value is not a valid integer (type=type_error.integer)
475
476
```
477
0 commit comments