diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index b93ac389b..c9c2c83a5 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -434,7 +434,7 @@ Requires either the `Pillow` package or `PIL` package. The `Pillow` package is A field class that validates a list of objects. -**Signature**: `ListField(child, min_length=None, max_length=None)` +**Signature**: `ListField(child=, min_length=None, max_length=None)` - `child` - A field instance that should be used for validating the objects in the list. If this argument is not provided then objects in the list will not be validated. - `min_length` - Validates that the list contains no fewer than this number of elements. @@ -457,7 +457,7 @@ We can now reuse our custom `StringListField` class throughout our application, A field class that validates a dictionary of objects. The keys in `DictField` are always assumed to be string values. -**Signature**: `DictField(child)` +**Signature**: `DictField(child=)` - `child` - A field instance that should be used for validating the values in the dictionary. If this argument is not provided then values in the mapping will not be validated.