Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update add-errors-to-response-schemas.ts

Daniel Hougaard433e58655a14
diff --git a/backend/src/server/plugins/add-errors-to-response-schemas.ts b/backend/src/server/plugins/add-errors-to-response-schemas.ts
index e37243ebae..75844040cf 100644
--- a/backend/src/server/plugins/add-errors-to-response-schemas.ts
+++ b/backend/src/server/plugins/add-errors-to-response-schemas.ts
@@ -10,9 +10,6 @@ export const addErrorsToResponseSchemas = fp(async (server) => {
...DefaultResponseErrorsSchema,
...routeOptions.schema.response
};
- } else {
- routeOptions.schema = routeOptions.schema || {};
- routeOptions.schema.response = { ...DefaultResponseErrorsSchema };
}
});
});