Skip to content

Validate task titles on create - #11

Open
aj-enns wants to merge 1 commit into
mainfrom
aj-enns-add-task-validation
Open

Validate task titles on create#11
aj-enns wants to merge 1 commit into
mainfrom
aj-enns-add-task-validation

Conversation

@aj-enns

@aj-enns aj-enns commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rejects POST /tasks requests that do not include a non-empty string title.
  • Returns a clear 400 JSON error and avoids creating a task for invalid payloads.
  • Adds API tests for the happy path and invalid title cases.

Testing

  • cd sample-app && npm test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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