OptionalchangesOptionalcleanConfiguration of data cleaning
steps applied to user input data. This can be explicitly passed as false
which requires the provided data to already be clean.
OptionaldropFor Array-like fields, control whether an invalid element is allowed to be removed from the data in lieu of fallback replacement.
OptionaldropIf true, invalid embedded documents will emit a warning and be placed in the invalidDocuments collection rather than causing the parent to be considered invalid. This option mutates the provided changes.
OptionalfallbackAllow replacement of invalid values with valid defaults? This option mutates the provided changes.
OptionalmodelThe data model instance being validated. This is automatically populated during the model validation flow.
OptionalstrictThrow an error if validation fails.
A specific set of proposed changes to validate, rather than the full source data of the model. This type of validation is redirected to DataModel#updateSource as a dry-run.