Is there an existing issue for this?
What happened?
Currently, the ImageIdsRequest schema allows empty lists or lists containing only whitespace strings (e.g., [" ", ""]). This can lead to database inconsistencies or unhandled 500 errors in the album management logic.
Proposed Fix: Add a Pydantic @field_validator to sanitize input and ensure the list contains valid, non-empty strings.
Record
Is there an existing issue for this?
What happened?
Currently, the ImageIdsRequest schema allows empty lists or lists containing only whitespace strings (e.g., [" ", ""]). This can lead to database inconsistencies or unhandled 500 errors in the album management logic.
Proposed Fix: Add a Pydantic @field_validator to sanitize input and ensure the list contains valid, non-empty strings.
Record