-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting for organization schema
- Loading branch information
1 parent
a8791f4
commit e10dde2
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { z } from "zod"; | ||
|
||
export const organizationSchema = z.object({ | ||
name: z.string().min(1, "Name must have at least 1 character").max(55, "Name must be less than 55 characters"), | ||
location: z.string().min(1).max(100), | ||
description: z.string().min(1).max(1000), | ||
tagline: z.string().max(100).optional(), | ||
social_accounts: z.array(z.string()).optional(), | ||
topics: z.array(z.string()).min(1).optional(), | ||
}); | ||
name: z | ||
.string() | ||
.min(1, "Name must have at least 1 character") | ||
.max(55, "Name must be less than 55 characters"), | ||
location: z.string().min(1).max(100), | ||
description: z.string().min(1).max(1000), | ||
tagline: z.string().max(100).optional(), | ||
social_accounts: z.array(z.string()).optional(), | ||
topics: z.array(z.string()).min(1).optional(), | ||
}); |