fix: Short VIN Storage - Issue #1
All checks were successful
Deploy to Staging / Build Images (push) Successful in 4m31s
Deploy to Staging / Deploy to Staging (push) Successful in 36s
Deploy to Staging / Verify Staging (push) Successful in 5s
Deploy to Staging / Notify Staging Ready (push) Successful in 5s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 4m31s
Deploy to Staging / Deploy to Staging (push) Successful in 36s
Deploy to Staging / Verify Staging (push) Successful in 5s
Deploy to Staging / Notify Staging Ready (push) Successful in 5s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
This commit is contained in:
@@ -17,11 +17,20 @@ export const createVehicleSchema = z.object({
|
||||
});
|
||||
|
||||
export const updateVehicleSchema = z.object({
|
||||
vin: z.string().max(17).optional(),
|
||||
year: z.number().min(1900).max(new Date().getFullYear() + 1).optional(),
|
||||
make: z.string().max(100).optional(),
|
||||
model: z.string().max(100).optional(),
|
||||
engine: z.string().max(100).optional(),
|
||||
transmission: z.string().max(100).optional(),
|
||||
trimLevel: z.string().max(100).optional(),
|
||||
driveType: z.string().max(50).optional(),
|
||||
fuelType: z.string().max(50).optional(),
|
||||
nickname: z.string().min(1).max(100).optional(),
|
||||
color: z.string().min(1).max(50).optional(),
|
||||
licensePlate: z.string().min(1).max(20).optional(),
|
||||
odometerReading: z.number().min(0).max(9999999).optional(),
|
||||
}).strict();
|
||||
});
|
||||
|
||||
export const vehicleIdSchema = z.object({
|
||||
id: z.string().uuid('Invalid vehicle ID format'),
|
||||
|
||||
Reference in New Issue
Block a user