mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
rephrase error messages
This commit is contained in:
@@ -597,7 +597,7 @@ export const RAW_SECRETS = {
|
|||||||
environment: "The slug of the environment to list secrets from.",
|
environment: "The slug of the environment to list secrets from.",
|
||||||
secretPath: "The secret path to list secrets from.",
|
secretPath: "The secret path to list secrets from.",
|
||||||
includeImports: "Weather to include imported secrets or not.",
|
includeImports: "Weather to include imported secrets or not.",
|
||||||
tagSlugs: "The comma seperated tag slugs to filter secrets"
|
tagSlugs: "The comma separated tag slugs to filter secrets"
|
||||||
},
|
},
|
||||||
CREATE: {
|
CREATE: {
|
||||||
secretName: "The name of the secret to create.",
|
secretName: "The name of the secret to create.",
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export const registerSecretTagRouter = async (server: FastifyZodProvider) => {
|
|||||||
.trim()
|
.trim()
|
||||||
.describe(SECRET_TAGS.UPDATE.slug)
|
.describe(SECRET_TAGS.UPDATE.slug)
|
||||||
.refine((v) => slugify(v) === v, {
|
.refine((v) => slugify(v) === v, {
|
||||||
message: "Invalid slug. Should contain only characters, numbers and hyphen."
|
message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens."
|
||||||
}),
|
}),
|
||||||
color: z.string().trim().describe(SECRET_TAGS.UPDATE.color)
|
color: z.string().trim().describe(SECRET_TAGS.UPDATE.color)
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ const createTagSchema = z.object({
|
|||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.refine((v) => slugify(v) === v, {
|
.refine((v) => slugify(v) === v, {
|
||||||
message: "Invalid slug. Should contain only characters, numbers and hyphen."
|
message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens."
|
||||||
}),
|
}),
|
||||||
color: z.string().trim()
|
color: z.string().trim()
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import { UsePopUpState } from "@app/hooks/usePopUp";
|
|||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
slug: z.string().refine((v) => slugify(v) === v, {
|
slug: z.string().refine((v) => slugify(v) === v, {
|
||||||
message: "Invalid slug. Should contain only characters, numbers and hyphen."
|
message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens."
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user