Skip to content

feat: add priority field to todos#1

Open
jovanikos wants to merge 1 commit intomasterfrom
feature/add-priority
Open

feat: add priority field to todos#1
jovanikos wants to merge 1 commit intomasterfrom
feature/add-priority

Conversation

@jovanikos
Copy link
Copy Markdown
Owner

Summary

  • Adds an optional priority field to todos (low, medium, high)
  • Defaults to medium if not provided
  • Validates the value on POST

Test plan

  • POST /todos with priority: "high" returns the field
  • POST /todos without priority defaults to medium
  • POST /todos with invalid priority returns 400

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