add @lib and @api paths for cleaner imports
This commit is contained in:
1 parent
737a8897ba
commit
f4d889e87b
10 files changed
+232
-38
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const schema = z
|
||||
.object({
|
||||
title: z.string().min(3),
|
||||
slug: z.string().min(3),
|
||||
length: z.number().min(1).max(1440), // max is a full day.
|
||||
description: z.string().min(3).optional(),
|
||||
})
|
||||
.strict(); // Adding strict so that we can disallow passing in extra fields
|
||||
|
||||
export default schema;
|
||||
File renamed without changes.
Reference in new issue
Block a user