From 6eeb73a38fd3397a481ac372e34a79c03ea8f2b1 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 29 Jan 2018 13:42:58 +0100 Subject: [PATCH] Fixed the types of some options in Collection constraint --- reference/constraints/Collection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.