From 9fa967eca837b89dd2798d12ac3f168ddc1af517 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Tue, 26 Apr 2022 21:03:32 -0700 Subject: [PATCH] Update Length Validator Empty String Docs Empty strings are no longer valid if a min is passed, null values still validate. --- reference/constraints/Length.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/constraints/Length.rst b/reference/constraints/Length.rst index c9569a7227d..140f804092e 100644 --- a/reference/constraints/Length.rst +++ b/reference/constraints/Length.rst @@ -113,7 +113,7 @@ and ``50``, you might add the following: } } -.. include:: /reference/constraints/_empty-values-are-valid.rst.inc +.. include:: /reference/constraints/_null-values-are-valid.rst.inc Options ------- @@ -199,9 +199,9 @@ the given value's length is **less** than this min value. This option is required when the ``max`` option is not defined. -It is important to notice that NULL values and empty strings are considered -valid no matter if the constraint required a minimum length. Validators -are triggered only if the value is not blank. +It is important to notice that ``null`` values are considered +valid no matter if the constraint requires a minimum length. Validators +are triggered only if the value is not ``null``. ``minMessage`` ~~~~~~~~~~~~~~