Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

How to validate outside the whitelist #346

@mike35x95x1

Description

@mike35x95x1

Hi,
is it possible to validate values that are NOT in the whitelist? The only workaround is to compare the objects (lodash etc.)

let whiteSource = cleanAttributes(originalSource, whitelist)
if ( !_.isEqual(whiteSource, originalSource) ) {
  error...
}

Thanx
Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions