Skip to content

User consent config validation - #84

Merged
EmilianoSanchez merged 7 commits into
user_consent_setter_and_getterfrom
user_consent_config_validation
Mar 3, 2022
Merged

User consent config validation#84
EmilianoSanchez merged 7 commits into
user_consent_setter_and_getterfrom
user_consent_config_validation

Conversation

@EmilianoSanchez

@EmilianoSanchez EmilianoSanchez commented Feb 24, 2022

Copy link
Copy Markdown
Contributor

Javascript commons library

What did you accomplish?

  • Updated validation of impressionsMode config param, to avoid a crash and default to 'OPTIMIZED' if a value is provided that is not a string.
  • Added validation of userConsent config param. Validation differs in server-side (NodeJS) and client-side (Browser), so the validation is done with a validator function that must be provided, same way than runtime settings validation.

How do we test the changes introduced in this PR?

  • Unit tests in JS SDK.

Extra Notes

@EmilianoSanchez EmilianoSanchez changed the title User consent config validation [WIP] User consent config validation Mar 2, 2022
@EmilianoSanchez
EmilianoSanchez merged commit 57d2191 into user_consent_setter_and_getter Mar 3, 2022
@EmilianoSanchez
EmilianoSanchez deleted the user_consent_config_validation branch March 3, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants