mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
## 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 --> |
||
|---|---|---|
| .. | ||
| ai | ||
| apps | ||
| config | ||
| helpers | ||
| hooks | ||
| interface | ||
| payments | ||
| utils | ||
| config-authoring.test.ts | ||
| config-authoring.ts | ||
| config-rendering.ts | ||
| crud.tsx | ||
| global.d.ts | ||
| index.ts | ||
| known-errors.tsx | ||
| plans.ts | ||
| schema-fields.ts | ||
| sessions.ts | ||