interface DataFieldValidationOptions {
    partial: boolean;
    fallback: boolean;
    source: any;
    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: any

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.