mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
feat: updated by review comment
This commit is contained in:
@@ -724,7 +724,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
||||
.string()
|
||||
.trim()
|
||||
.refine((val) => characterValidator([CharacterType.AlphaNumeric, CharacterType.Hyphen])(val), {
|
||||
message: "Invalid pattern: only alphanumeric characters, spaces, - are allowed."
|
||||
message: "Invalid pattern: only alphanumeric characters, - are allowed."
|
||||
})
|
||||
.optional()
|
||||
}),
|
||||
@@ -771,9 +771,10 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
||||
CharacterType.Exclamation
|
||||
])(val),
|
||||
{
|
||||
message: "Invalid pattern: only alphanumeric characters, spaces, - are allowed."
|
||||
message: "Invalid pattern: only alphanumeric characters, spaces, -.!, are allowed."
|
||||
}
|
||||
)
|
||||
.optional()
|
||||
}),
|
||||
response: {
|
||||
200: z.object({
|
||||
|
||||
@@ -176,5 +176,5 @@ export type TSearchProjectsDTO = {
|
||||
export type TProjectAccessRequestDTO = {
|
||||
permission: OrgServiceActor;
|
||||
projectId: string;
|
||||
comment: string;
|
||||
comment?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user