API field naming inconsistent with README docs — register expects 'name' not 'username' #25

Closed
opened 2026-05-14 14:30:16 +00:00 by Mark · 1 comment
Owner

Bug

The auth register endpoint expects the field name but frontend developers naturally send username.

Evidence

username field → 400: {"error":"Email, password, and name are required"}
name field → 201: Success

Similarly, subscription creation expects billingDate and amount instead of more intuitive price and billingCycle.

Impact

Two issues: (1) the error message doesn't tell the caller which field name to use, and (2) the API surface doesn't match common conventions.

Severity

BLUE Low — Works with correct field names, but confusing for new API consumers. Missing field name in error response makes debugging harder.

## Bug The auth register endpoint expects the field `name` but frontend developers naturally send `username`. ## Evidence `username` field → 400: `{"error":"Email, password, and name are required"}` `name` field → 201: Success Similarly, subscription creation expects `billingDate` and `amount` instead of more intuitive `price` and `billingCycle`. ## Impact Two issues: (1) the error message doesn't tell the caller which field name to use, and (2) the API surface doesn't match common conventions. ## Severity BLUE **Low** — Works with correct field names, but confusing for new API consumers. Missing field name in error response makes debugging harder.
Author
Owner

Fixed in commit. Closing.

Fixed in commit. Closing.
Mark closed this issue 2026-05-14 18:01:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/subvault#25
No description provided.