Update and refine schemas in Stripe and Team Accounts features
Refactored both Stripe and Team Accounts features' schemas for better data validation and added specificity to keys. Enhanced form validations with methods to ensure Stripe keys follow appropriate prefixes. Replaced generic string types with UUID for accountId attributes in different services. Also turned off autocomplete for destructive actions for improved security.
This commit is contained in:
@@ -3,7 +3,9 @@ import { z } from 'zod';
|
||||
export const MailerSchema = z
|
||||
.object({
|
||||
to: z.string().email(),
|
||||
from: z.string().email(),
|
||||
// this is not necessarily formatted
|
||||
// as an email so we type it loosely
|
||||
from: z.string().min(1),
|
||||
subject: z.string(),
|
||||
})
|
||||
.and(
|
||||
|
||||
Reference in New Issue
Block a user