Optional
changesOptional
cleanIf changes are provided, attempt to clean the changes before validating them? This option mutates the provided changes.
Optional
dropIf 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.
Optional
fallbackAllow replacement of invalid values with valid defaults? This option mutates the provided changes.
Optional
fieldsValidate each individual field
Optional
jointPerform joint validation on the full data model? Joint validation will be performed by default if no changes are passed. Joint validation will be disabled by default if changes are passed. Joint validation can be performed on a complete set of changes (for example testing a complete data model) by explicitly passing true.
Optional
strictThrow an error if validation fails.
A specific set of proposed changes to validate, rather than the full source data of the model.