added credit

This commit is contained in:
x032205
2025-05-09 13:45:36 -04:00
parent f6bc99b964
commit 4e9e31eeb7

View File

@@ -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 {