[SERVER-29582] Create a $_internalSchemaAllowedProperties MatchExpression Created: 12/Jun/17  Updated: 30/Oct/23  Resolved: 23/Aug/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2017-07-10, Query 2017-07-31, Query 2017-08-21, Query 2017-09-11
Participants:

 Description   
Proposed Syntax

$_internalSchemaAllowedProperties has the following form:

{ $_internalSchemaAllowedProperties: {
        properties: <list of strings>,
        namePlaceholder: "i",
        patternProperties: <regex-expression-list>,
        otherwise: <schema>
    }
}

<regex-expression-list> has the following form:

[
    {regex: <regex>, expression: <MatchExpression>},
    ....
]

To constrain a subobject, wrap it in an $_internalSchemaObjectMatch.



 Comments   
Comment by Ramon Fernandez Marina [ 24/Aug/17 ]

Author:

{'username': u'ksuarz', 'name': u'Kyle Suarez', 'email': u'kyle.suarez@mongodb.com'}

Message:SERVER-29582 create a $_internalSchemaAllowedProperties match expression
Branch:master
https://github.com/mongodb/mongo/commit/1bba024b024acf6d578796b53b26f5ba6fafd2c6

Comment by Kyle Suarez [ 23/Aug/17 ]

And here's the commit with the feature: https://github.com/mongodb/mongo/commit/1bba024b024acf6d578796b53b26f5ba6fafd2c6

Generated at Thu Feb 08 04:21:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.