mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 01:29:26 +00:00
Fix: Replaced merge with extend as proposed by Akhil
This commit is contained in:
@@ -171,11 +171,9 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
||||
response: {
|
||||
200: z.object({
|
||||
secrets: secretRawSchema
|
||||
.merge(
|
||||
z.object({
|
||||
.extend({
|
||||
secretPath: z.string().optional()
|
||||
})
|
||||
)
|
||||
.array(),
|
||||
imports: z
|
||||
.object({
|
||||
@@ -620,8 +618,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
||||
response: {
|
||||
200: z.object({
|
||||
secrets: SecretsSchema.omit({ secretBlindIndex: true })
|
||||
.merge(
|
||||
z.object({
|
||||
.extend({
|
||||
_id: z.string(),
|
||||
workspace: z.string(),
|
||||
environment: z.string(),
|
||||
@@ -633,7 +630,6 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
||||
color: true
|
||||
}).array()
|
||||
})
|
||||
)
|
||||
.array(),
|
||||
imports: z
|
||||
.object({
|
||||
|
||||
Reference in New Issue
Block a user