Skip to content

Commit

Permalink
Fix formatting for organization schema
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 18, 2024
1 parent a8791f4 commit e10dde2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/forms/schemas/organizationSchema.ts
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(),
});

0 comments on commit e10dde2

Please sign in to comment.