You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix: Add schema validation and positive bid bounds to proposals (ref #743) #12520
In apps/api/src/controllers/proposalController.js, postProposal directly consumes req.body without schema validation. This allows unvalidated payloads, non-positive or negative bid amounts, and missing job references to be accepted.
Validate request payload in proposalController.postProposal using createProposalSchema.parse(req.body).
Add automated unit/regression tests verifying rejection of negative/zero bids and acceptance of valid proposals.
This issue is limited only to the creator of this issue. This means that only the issue author can attempt to solve this issue. If you would like to work on it, please create another issue with the same contents and refer to issue #743 for more information.
Activity
PINYOPATTANAWASANPORN commentedon Sep 16, 2026
I have implemented the schema validation and positive bid bounds for proposals along with automated regression test coverage.
Delivered in PR #12521
monopolymummat-cmyk commentedon Oct 3, 2026
Hi — I've opened #12890 (#12890) to address this.
Disclosed: authored with AI assistance (Z.ai) and submitted for this project specifically.
fix(api): validate proposal payloads and reject non-positive bids (Se…