diff options
author | Mindaugas Malinauskas <mindaugas.malinauskas@mongodb.com> | 2020-08-26 17:31:32 +0300 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-30 14:19:21 +0000 |
commit | f9bcd01fe11b486330704c5e1aa38e154a3ce542 (patch) | |
tree | 5c98332a3995efd74719482b3de1608701e1371e /src/mongo/db/matcher/schema/expression_internal_schema_max_items.h | |
parent | 427aebf681febea415a2f2db024c6e8fa65b35b1 (diff) | |
download | mongo-f9bcd01fe11b486330704c5e1aa38e154a3ce542.tar.gz |
SERVER-49445 Implement validation error generation for jsonSchema array keywords
Diffstat (limited to 'src/mongo/db/matcher/schema/expression_internal_schema_max_items.h')
-rw-r--r-- | src/mongo/db/matcher/schema/expression_internal_schema_max_items.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/schema/expression_internal_schema_max_items.h b/src/mongo/db/matcher/schema/expression_internal_schema_max_items.h index ce8cf2a2931..cbb4dc5da0e 100644 --- a/src/mongo/db/matcher/schema/expression_internal_schema_max_items.h +++ b/src/mongo/db/matcher/schema/expression_internal_schema_max_items.h @@ -55,7 +55,8 @@ public: std::unique_ptr<MatchExpression> shallowClone() const final { std::unique_ptr<InternalSchemaMaxItemsMatchExpression> maxItems = - std::make_unique<InternalSchemaMaxItemsMatchExpression>(path(), numItems()); + std::make_unique<InternalSchemaMaxItemsMatchExpression>( + path(), numItems(), _errorAnnotation); if (getTag()) { maxItems->setTag(getTag()->clone()); } |