diff --git a/reference/constraints/Collection.rst b/reference/constraints/Collection.rst index 5630f23feda..746c2114101 100644 --- a/reference/constraints/Collection.rst +++ b/reference/constraints/Collection.rst @@ -314,7 +314,7 @@ error will be returned. If set to ``true``, extra fields are ok. extraFieldsMessage ~~~~~~~~~~~~~~~~~~ -**type**: ``boolean`` **default**: ``This field was not expected.`` +**type**: ``string`` **default**: ``This field was not expected.`` The message shown if `allowExtraFields`_ is false and an extra field is detected. @@ -332,7 +332,7 @@ option are not present in the underlying collection. missingFieldsMessage ~~~~~~~~~~~~~~~~~~~~ -**type**: ``boolean`` **default**: ``This field is missing.`` +**type**: ``string`` **default**: ``This field is missing.`` The message shown if `allowMissingFields`_ is false and one or more fields are missing from the underlying collection.