The current validator for a bucket's control field only checks
control: { bsonType: \"object\", required: [ \"version\", \"min\", \"max\" ], properties: { version: { bsonType: \"number\" }, min: { bsonType: \"object\", required: [ \"time\" ], properties: { time: { bsonType: \"date\" } } }, max: { bsonType: \"object\", required: [ \"time\" ], properties: { time: { bsonType: \"date\" } } }, closed: { bsonType: \"bool\" } } }
We might also want to consider adding additionalProperties: false to disallow extra fields in control.
- causes
-
SERVER-71177 Timeseries collection creation fails due to incompatible validator between 6.0 and subsequent versions
- Closed