From eb960ca711e5c83124c89d2dc8e2edf58ff81f93 Mon Sep 17 00:00:00 2001 From: Daniel Kjellid <42611331+danielkjellid@users.noreply.github.com> Date: Wed, 11 Jan 2023 13:46:11 +0100 Subject: [PATCH] Fix typo in Field function docstring (#4931) --- pydantic/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydantic/fields.py b/pydantic/fields.py index 3219bc4..063a508 100644 --- a/pydantic/fields.py +++ b/pydantic/fields.py @@ -298,7 +298,7 @@ def Field( :param max_items: only applies to lists, requires the field to have a maximum number of elements. The schema will have a ``maxItems`` validation keyword :param min_length: only applies to strings, requires the field to have a minimum length. The - schema will have a ``maximum`` validation keyword + schema will have a ``minLength`` validation keyword :param max_length: only applies to strings, requires the field to have a maximum length. The schema will have a ``maxLength`` validation keyword :param frozen: a boolean which defaults to True. When False, the field raises a TypeError if the field is