interface DataFieldValidationOptions {
    partial: boolean;
    fallback: boolean;
    source: object;
    dropInvalidEmbedded: boolean;
}

Properties

partial: boolean

Whether this is a partial schema validation, or a complete one.

fallback: boolean

Whether to allow replacing invalid values with valid fallbacks.

source: object

The full source object being evaluated.

dropInvalidEmbedded: boolean

If true, invalid embedded documents will emit a warning and be placed in the invalidDocuments collection rather than causing the parent to be considered invalid.