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.
2 parents 6cd611b + 627b976 commit 31fd071Copy full SHA for 31fd071
docs/getting_started.md
@@ -465,15 +465,15 @@ try:
465
first_name="Andrew",
466
last_name="Brookins",
467
email="[email protected]",
468
- join_date="2020-01-02", # <- A date as a string shouldn't work now!
469
- age="38"
+ join_date="2020-01-02",
+ age="38" # <- Age as a string shouldn't work now!
470
)
471
except ValidationError as e:
472
print(e)
473
"""
474
pydantic.error_wrappers.ValidationError: 1 validation error for Customer
475
- join_date
476
- Value must be a datetime.date object (type=value_error)
+ age
+ Value is not a valid integer (type=type_error.integer)
477
478
```
479
0 commit comments