Details
Description
Create a $_internalSchemaMinLength MatchExpression, which takes a positive integer. It matches string fields whose length are at least the specified value:
{"path.to.match": {$_internalSchemaMinLength: <integer>}}
|
$_internalSchemaMaxLength works similarly for maximum length.
{"path.to.match": {$_internalSchemaMaxLength: <integer>}}
|
Then, we can use these expression to emit MatchExpressions for the JSON Schema "minLength" and "maxLength" keywords.
Attachments
Issue Links
- related to
-
SERVER-30467 Extend $_internalSchemaMinLength and $_internalSchemaMaxLength to count lengths of Unicode strings
-
- Closed
-