Skip to content

Validate job budget ranges#4133

Open
yZangEren wants to merge 2 commits into
SecureBananaLabs:mainfrom
yZangEren:fix-job-budget-range-validation
Open

Validate job budget ranges#4133
yZangEren wants to merge 2 commits into
SecureBananaLabs:mainfrom
yZangEren:fix-job-budget-range-validation

Conversation

@yZangEren

@yZangEren yZangEren commented Jun 4, 2026

Copy link
Copy Markdown

Closes #4130.

Parent bounty: #743

Summary

  • Rejects inverted job budget ranges where budgetMax < budgetMin for job creation.
  • Applies the same check to partial job updates only when both budget fields are present.
  • Keeps equal ranges and single-field partial budget updates valid.
  • Updates the API test script so npm test discovers test files on Windows/Node 22 as well.

Demo

Tests

npm test

Result: 5 tests passed.

/claim #743

github-actions Bot added a commit that referenced this pull request Jun 4, 2026
@yZangEren yZangEren force-pushed the fix-job-budget-range-validation branch from 4d65334 to 19368df Compare June 5, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Job validation should reject inverted budget ranges (creator-owned #743 reissue)

1 participant