[PR #7709] refactor: api validators (boolean and date) #11754

Closed
opened 2026-02-05 14:45:17 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/7709

State: closed
Merged: Yes


  • no longer allow so many "date" options, like false, 0, etc.
  • standardize date validation (using isDateString)
  • standardize boolean validation (correctly converts 'false' and 'true' in query params, etc.

The e2e tests for the cli failed without fileCreatedAt.toISOString() after these changes, which now require valid date strings. I'm not sure what it was doing before but it is possible it was not working correctly.

**Original Pull Request:** https://github.com/immich-app/immich/pull/7709 **State:** closed **Merged:** Yes --- * no longer allow so many "date" options, like `false`, 0, etc. * standardize date validation (using isDateString) * standardize boolean validation (correctly converts `'false'` and `'true'` in query params, etc. The e2e tests for the cli failed without `fileCreatedAt.toISOString()` after these changes, which now require valid date strings. I'm not sure what it was doing before but it is possible it was not working correctly.
OVERLORD added the pull-request label 2026-02-05 14:45:17 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#11754