Skip to content

Reject fractional subscription period counts - #469

Open
Shubham-Padkonde wants to merge 2 commits into
apple:mainfrom
Shubham-Padkonde:fix/integer-period-count
Open

Shubham-Padkonde wants to merge 2 commits into
apple:mainfrom
Shubham-Padkonde:fix/integer-period-count

Conversation

@Shubham-Padkonde

@Shubham-Padkonde Shubham-Padkonde commented Oct 4, 2026 •

Copy link
Copy Markdown

Upstream now rejects fractional offer period counts in HelperValidationUtils, but TransactionCommitmentInfoValidator has moved to its own range check and still accepts a fractional billingPeriodNumber such as 1.5.

Require Number.isInteger in that billing-period check while preserving upstream's support for boxed integer Numbers, the 1–12 range, and omitted optional fields. Retain the regression coverage for fractional helper inputs and offers, and cover primitive/boxed commitment values, range bounds, strings and null.

Validation after merging main: the commitment regression fails before the additional integer check. TypeScript compilation and all 460 tests across 17 suites pass, including live verification tests. git diff --check passes.

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