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

How to validate outside the whitelist #346

Open
michalcesek opened this issue Mar 17, 2021 · 0 comments
Open

How to validate outside the whitelist #346

michalcesek opened this issue Mar 17, 2021 · 0 comments

Comments

@michalcesek
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant