Skip to content

Reject invalid coupon discount#460

Open
Kotmin wants to merge 2 commits intoRailsEventStore:masterfrom
Kotmin:coupons-negative-discount
Open

Reject invalid coupon discount#460
Kotmin wants to merge 2 commits intoRailsEventStore:masterfrom
Kotmin:coupons-negative-discount

Conversation

@Kotmin
Copy link
Contributor

@Kotmin Kotmin commented Dec 23, 2025

Invalid coupon discount input could previously result in a 500 error.
This change validates input at the controller boundary and returns 422
instead, without altering domain constraints. Integration coverage added.

@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for ecommerce-events failed. Why did it fail? →

Name Link
🔨 Latest commit 98deae0
🔍 Latest deploy log https://app.netlify.com/projects/ecommerce-events/deploys/69714f36aa92850008afe1cd

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