Skip to content

fix: reject inverted job budget ranges#4300

Open
jiuyyds wants to merge 1 commit into
SecureBananaLabs:mainfrom
jiuyyds:fix/job-budget-range-validation
Open

fix: reject inverted job budget ranges#4300
jiuyyds wants to merge 1 commit into
SecureBananaLabs:mainfrom
jiuyyds:fix/job-budget-range-validation

Conversation

@jiuyyds

@jiuyyds jiuyyds commented Jun 4, 2026

Copy link
Copy Markdown

Summary

  • Add budget range validation so job creation rejects payloads where budgetMax is lower than budgetMin.
  • Apply the same ordered-range validation to partial job updates when both budget fields are present.
  • Add node:test coverage for invalid, valid, and partial budget update cases.

Verification

  • Ran cd apps/api && node --test "src/tests/*.test.js"
  • Result: 5 tests passed, 0 failed.

Closes #4299

github-actions Bot added a commit that referenced this pull request Jun 4, 2026
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.

Reject inverted job budget ranges in job validation (reissue via #743)

1 participant