stack/packages
Mantra e0c1cc5376
Fix null-unsafe payments config validation for partial overrides (#1363)
## Summary
- Make the `branchPaymentsSchema` custom validator tolerant of partial
override objects
- Avoid crashing when `payments.products` or `payments.productLines` are
absent during validation
- Add regression tests for partial configs plus the existing
missing-line and customer-type mismatch cases

## Testing
- Added Vitest coverage for partial payments configs and validation
failures
- Lint passed for the touched schema files
- Typecheck passed for `packages/stack-shared`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved validation robustness with stricter type-safety checks for
payment-related data configurations.
  * Enhanced error messages for clearer feedback on validation failures.

* **Tests**
* Added comprehensive test coverage for edge cases including missing
configurations and type mismatches.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-12 10:08:01 -07:00
..
dashboard-ui-components chore: update package versions 2026-05-11 10:10:47 -07:00
init-stack chore: update package versions 2026-05-11 10:10:47 -07:00
js chore: update package versions 2026-05-11 10:10:47 -07:00
react chore: update package versions 2026-05-11 10:10:47 -07:00
stack chore: update package versions 2026-05-11 10:10:47 -07:00
stack-cli chore: update package versions 2026-05-11 10:10:47 -07:00
stack-sc chore: update package versions 2026-05-11 10:10:47 -07:00
stack-shared Fix null-unsafe payments config validation for partial overrides (#1363) 2026-05-12 10:08:01 -07:00
stack-ui chore: update package versions 2026-05-11 10:10:47 -07:00
tanstack-start chore: update package versions 2026-05-11 10:10:47 -07:00
template Dev tool redesign (#1409) 2026-05-11 18:26:46 -07:00