feat: updated by review comment

This commit is contained in:
=
2025-04-03 23:28:18 +05:30
parent ee536717c0
commit 6bf9ab5937
4 changed files with 6 additions and 14 deletions
@@ -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;
};