Problem
The /email endpoint accepts unbounded sender and body strings, which can cause unnecessary memory use and expensive upstream requests.
Acceptance criteria
- Define reasonable maximum lengths for
sender and body.
- Return a clear validation response when limits are exceeded.
- Document the limits and add focused tests.
Problem
The
/emailendpoint accepts unbounded sender and body strings, which can cause unnecessary memory use and expensive upstream requests.Acceptance criteria
senderandbody.