Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

use lowercase in fields

Matheus Nogueira30d7da0e367b
diff --git a/backend/src/ee/routes/v1/honey-token-router.ts b/backend/src/ee/routes/v1/honey-token-router.ts
index c5f70c5745..f4cd68cafb 100644
--- a/backend/src/ee/routes/v1/honey-token-router.ts
+++ b/backend/src/ee/routes/v1/honey-token-router.ts
@@ -99,7 +99,7 @@ export const registerHoneyTokenRouter = async (server: FastifyZodProvider) => {
body: z.object({
projectId: z.string().trim(),
type: z.nativeEnum(HoneyTokenType),
- name: slugSchema({ field: "Name" }),
+ name: slugSchema({ field: "name" }),
description: z.string().trim().max(256).nullish(),
secretsMapping: z.record(z.string(), z.string().min(1)),
environment: z.string().trim(),
@@ -166,7 +166,7 @@ export const registerHoneyTokenRouter = async (server: FastifyZodProvider) => {
}),
body: z.object({
projectId: z.string().trim(),
- name: slugSchema({ field: "Name" }).optional(),
+ name: slugSchema({ field: "name" }).optional(),
description: z.string().trim().max(256).nullish(),
secretsMapping: z.record(z.string(), z.string().min(1)).optional()
}),