Skip to content

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

added credit

x0322054e9e31eeb714
diff --git a/backend/src/server/plugins/fastify-zod.ts b/backend/src/server/plugins/fastify-zod.ts
index 95fb29722e..f9b9f4f599 100644
--- a/backend/src/server/plugins/fastify-zod.ts
+++ b/backend/src/server/plugins/fastify-zod.ts
@@ -28,6 +28,7 @@ interface Schema extends FastifySchema {
hide?: boolean;
}
+// Credit: https://github.com/StefanTerdell/zod-to-json-schema
const jsonDescription: PostProcessCallback = (jsonSchema, def) => {
if (def.description) {
try {