Skip to content

fix: add new appreciation values to request validation schema - #845

Merged
need4deed merged 1 commit into
need4deed-org:developfrom
ivannissimrch:837-appreciation-enum-validation-schema
Aug 7, 2026
Merged

fix: add new appreciation values to request validation schema#845
need4deed merged 1 commit into
need4deed-org:developfrom
ivannissimrch:837-appreciation-enum-validation-schema

Conversation

@ivannissimrch

Copy link
Copy Markdown
Contributor

Description

The four new appreciation options (Need4Deed certificate, cap, notebook, city certificate) cannot be saved. The API rejects them with a 400 before the handler runs.

be#795 added those values to the SDK and to the database migration, but the request validation schema in sdk-types.json still listed only the original three, so every request with a new value was thrown out at validation.

Tested locally: with the values added, the four new options save and persist correctly.

Related Issues

Closes #837
Unblocks need4deed-org/fe#910

Changes

  • Added the four new appreciation values to VolunteerStateAppreciationType in src/server/schema/sdk-types.json

Checklist

  • WITHIN THE SCOPE OF AN ISSUE; No unnecessary files included
  • Tests added/updated
  • Documentation updated
  • CI passes

@ivannissimrch

Copy link
Copy Markdown
Contributor Author

Fe 910 is open and waiting on this one.

@need4deed need4deed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivannissimrch thank you!

@need4deed
need4deed merged commit 90a6f88 into need4deed-org:develop Aug 7, 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.

New appreciation types rejected by request validation

2 participants