Skip to content

fix(examples): validate outcomes and preserve keys - #50

Closed
fadi-george wants to merge 1 commit into
mainfrom
fadi/sdk-5122
Closed

fix(examples): validate outcomes and preserve keys#50
fadi-george wants to merge 1 commit into
mainfrom
fadi/sdk-5122

Conversation

@fadi-george

@fadi-george fadi-george commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Reject invalid outcome values and preserve special dictionary keys in both demos.

Details

Motivation

Linear: SDK-5125, SDK-5122.

Outcome values must be present, complete, and finite. Multi-pair dictionaries now preserve keys such as __proto__. JSON event properties were already object-only; native header-title and inline-control remount patterns do not exist in these web demos. Adapted from applicable parts of OneSignal/react-native-onesignal#1982.

Scope

Demo input handling only; accessibility and SDK APIs are unchanged.

Testing

  • vp test run: 179 tests pass; coverage thresholds pass.
  • Focused vp check for all four changed modal files: passes.
  • Both examples/demo and examples/demo_pods production web builds: pass.
  • Full vp check has an unchanged baseline README.md formatting failure.

Affected code checklist

  • Outcomes
  • Public API changes

Checklist

  • I have filled out all required sections
  • PR does one thing
  • No public API changes
  • Automated tests pass
  • Diff reviewed
Open in Web Open in Cursor 

Co-authored-by: Fadi George <fadi-george@users.noreply.github.com>
@fadi-george
fadi-george marked this pull request as ready for review September 1, 2026 21:45
@fadi-george
fadi-george requested a review from a team September 1, 2026 21:45
@cursor
cursor Bot deleted the fadi/sdk-5122 branch September 1, 2026 21:54
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.

3 participants