memos/server/router/api
Claude c8900acc4e
feat(api): validate custom memo_id format in CreateMemo
Add early validation for custom memo IDs to provide clear error
messages when an invalid format is provided.

Validation ensures memo_id matches the required pattern:
- 1-32 characters long
- Alphanumeric and hyphens only
- Cannot start or end with a hyphen
- Pattern: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,30}[a-zA-Z0-9])?$

This provides better UX by catching format errors early with a
descriptive error message rather than a generic "invalid uid"
error from the store layer.
2025-11-08 01:28:53 +00:00
..
v1 feat(api): validate custom memo_id format in CreateMemo 2025-11-08 01:28:53 +00:00