From 5b660da27bff3ac49c9552bd7468affbc155d796 Mon Sep 17 00:00:00 2001 From: Guido X Jansen Date: Sat, 7 Mar 2026 21:31:42 +0100 Subject: [PATCH] fix(plugins): add dependencies and settingsSchema to response schema (#159) Fastify uses fast-json-stringify which only serializes fields declared in the response JSON schema. The serializePlugin function returned these fields but the schema didn't declare them, so they were silently dropped from the response. --- src/routes/admin-plugins.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/admin-plugins.ts b/src/routes/admin-plugins.ts index 6092bce..5491f3c 100644 --- a/src/routes/admin-plugins.ts +++ b/src/routes/admin-plugins.ts @@ -34,6 +34,8 @@ const pluginJsonSchema = { category: { type: 'string' as const }, enabled: { type: 'boolean' as const }, manifestJson: { type: 'object' as const }, + dependencies: { type: 'array' as const, items: { type: 'string' as const } }, + settingsSchema: { type: 'object' as const }, settings: { type: 'object' as const }, installedAt: { type: 'string' as const, format: 'date-time' as const }, updatedAt: { type: 'string' as const, format: 'date-time' as const }, -- 2.51.2