Add input validation #15
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#14 Add structured JSON error responses
austin/vektor
Reference
austin/vektor#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Validation is currently ad-hoc — inline empty string checks scattered across handlers. There's no enforcement of valid status/priority values, no format validation on project keys, and no length limits.
What needs to happen
Add validation methods on the input types or a small helper package. Rules:
^[A-Z]{2,5}$Return structured validation errors using the JSON error format from #14: