Skip to content

Commit

Permalink
Merge pull request #3035 from akhilmhdh/fix/env-ui
Browse files Browse the repository at this point in the history
feat: updated ui validation for env to 64 like api
  • Loading branch information
akhilmhdh authored Jan 23, 2025
2 parents 784acf1 + 31905fa commit 2bd4770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const schema = z.object({
environmentName: z
.string()
.min(1, { message: "Environment Name field must be at least 1 character" }),
environmentSlug: slugSchema()
environmentSlug: slugSchema({ max: 64 })
});

export type FormData = z.infer<typeof schema>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = {

const schema = z.object({
name: z.string(),
slug: slugSchema({ min: 1 })
slug: slugSchema({ min: 1, max: 64 })
});

export type FormData = z.infer<typeof schema>;
Expand Down

0 comments on commit 2bd4770

Please sign in to comment.