Skip to content

Return the task unchanged, not throw, when tasksRepository.update is called with no changes - #166

Open
aaronofinn wants to merge 1 commit into
fastify:mainfrom
aaronofinn:fix/task-update-empty-body-500
Open

aaronofinn wants to merge 1 commit into
fastify:mainfrom
aaronofinn:fix/task-update-empty-body-500

Conversation

@aaronofinn

@aaronofinn aaronofinn commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

PATCH /api/tasks/:id returns a 500 instead of a clean response when the request body is empty or if the body includes valid UpdateTaskSchema fields, e.g. {"status": "completed"}. The list of task statuses is that cannot be changed is a separate issue.

Checklist

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant