feat(secret-approval): updated names to secret policy and fixed approval number bug

This commit is contained in:
Akhil Mohan
2023-09-28 12:23:01 +05:30
parent c67432a56f
commit b0c398688b
11 changed files with 54 additions and 37 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ export const CreateSecretApprovalRule = z.object({
body: z.object({
workspaceId: z.string(),
environment: z.string(),
secretPath: z.string().optional(),
secretPath: z.string().optional().nullable(),
approvers: z.string().array().optional(),
approvals: z.number().min(1).default(1)
})
@@ -23,7 +23,7 @@ export const UpdateSecretApprovalRule = z.object({
body: z.object({
approvers: z.string().array().optional(),
approvals: z.number().min(1).optional(),
secretPath: z.string().optional()
secretPath: z.string().optional().nullable()
})
});