Details
Description
Set the validator option to a JSON schema enforcing constraints on bucket documents. This validation is only structural to prevent accidental corruption by users and cannot cover all constraints. Updates by mongod itself are valid by construction, so don't require validation. Leave the validationLevel and validationAction to their strict/error defaults. Validation includes the following:
Top-level field types of the bucket. No fields other than those defined below.
Field types of fields inside control as defined below. Field type of control.time