fix(validation): validate tenant admin_email as an email (PMS-385) #290
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-385-tenant-admin-email-validation"
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?
POST /api/v1/tenants accepted a malformed admin_email and persisted it to the seeded admin user; the sibling billing_email already had #[validate(email)]. Add the same to admin_email so it is rejected with a 422 field error.
Verified in-container (just pre-commit): fmt + clippy + check + unit + doc tests green.
Fixes PMS-385.