mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
feat: updated ui validation for env to 64 like api
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ const schema = z.object({
|
|||||||
environmentName: z
|
environmentName: z
|
||||||
.string()
|
.string()
|
||||||
.min(1, { message: "Environment Name field must be at least 1 character" }),
|
.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>;
|
export type FormData = z.infer<typeof schema>;
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ type Props = {
|
|||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
slug: slugSchema({ min: 1 })
|
slug: slugSchema({ min: 1, max: 64 })
|
||||||
});
|
});
|
||||||
|
|
||||||
export type FormData = z.infer<typeof schema>;
|
export type FormData = z.infer<typeof schema>;
|
||||||
|
|||||||
Reference in New Issue
Block a user