Skip to content

fix: enforce integer validation for AppTransaction appAppleId and versionExternalIdentifier - #478

Open
utkarshpatwa393-sys wants to merge 1 commit into
apple:mainfrom
utkarshpatwa393-sys:fix/app-transaction-integer-validation
Open

utkarshpatwa393-sys wants to merge 1 commit into
apple:mainfrom
utkarshpatwa393-sys:fix/app-transaction-integer-validation

Conversation

@utkarshpatwa393-sys

Copy link
Copy Markdown

Summary

  • Enforce Number.isInteger(...) on appAppleId and versionExternalIdentifier in AppTransactionValidator (supporting both primitive numbers and boxed Number instances via .valueOf()).
  • Rejects NaN, Infinity, and fractional numbers for integer identifier fields, while preserving support for omitted optional fields.
  • Added unit test cases in tests/unit-tests/AppTransaction.test.ts covering valid integer/boxed inputs and invalid fractional, NaN, and Infinity values.

Verification

  • npm test (jest): 17 passed suites, 459 passed tests.
  • npm run build (tsc -p tsconfig.build.json): exited with code 0.

This branch has not been deployed

No deployments
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.

1 participant