Skip to content

fix: validate proposal duration#1685

Open
vondutchi wants to merge 1 commit into
SecureBananaLabs:mainfrom
vondutchi:fix/proposal-est-duration-required
Open

fix: validate proposal duration#1685
vondutchi wants to merge 1 commit into
SecureBananaLabs:mainfrom
vondutchi:fix/proposal-est-duration-required

Conversation

@vondutchi
Copy link
Copy Markdown

Summary

  • add a focused proposal creation schema aligned with required proposal fields
  • validate proposal payloads in the controller before creating records
  • add schema regression tests for missing, blank, and valid estDuration

Validation

  • node --test apps/api/src/tests/health.test.js apps/api/src/tests/proposalValidation.test.js
  • node --check apps/api/src/validators/proposal.js apps/api/src/controllers/proposalController.js apps/api/src/tests/proposalValidation.test.js
  • git diff --check

/claim #1683

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

1 participant