From 627b976db1f97b25fb3fdbd20447292380987845 Mon Sep 17 00:00:00 2001 From: Gowtham Date: Fri, 4 Feb 2022 20:47:33 +0530 Subject: [PATCH] corrected Strict Validation documentation --- docs/getting_started.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index 81d4759..b5d79ee 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -463,15 +463,15 @@ try: first_name="Andrew", last_name="Brookins", email="a@example.com", - join_date="2020-01-02", # <- A date as a string shouldn't work now! - age="38" + join_date="2020-01-02", + age="38" # <- Age as a string shouldn't work now! ) except ValidationError as e: print(e) """ pydantic.error_wrappers.ValidationError: 1 validation error for Customer - join_date - Value must be a datetime.date object (type=value_error) + age + Value is not a valid integer (type=type_error.integer) """ ```