From 860ae40d74451f19003eb7c18803d01aeafc5a70 Mon Sep 17 00:00:00 2001 From: Guido X Jansen Date: Sat, 7 Mar 2026 23:01:25 +0100 Subject: [PATCH] fix(plugins): add additionalProperties to object schemas (#160) fast-json-stringify strips all nested properties from objects when additionalProperties is not set. This caused settingsSchema, settings, and manifestJson to always be serialized as empty objects {}. --- src/routes/admin-plugins.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/admin-plugins.ts b/src/routes/admin-plugins.ts index 5491f3c..1107d10 100644 --- a/src/routes/admin-plugins.ts +++ b/src/routes/admin-plugins.ts @@ -33,10 +33,10 @@ const pluginJsonSchema = { source: { type: 'string' as const }, category: { type: 'string' as const }, enabled: { type: 'boolean' as const }, - manifestJson: { type: 'object' as const }, + manifestJson: { type: 'object' as const, additionalProperties: true }, dependencies: { type: 'array' as const, items: { type: 'string' as const } }, - settingsSchema: { type: 'object' as const }, - settings: { type: 'object' as const }, + settingsSchema: { type: 'object' as const, additionalProperties: true }, + settings: { type: 'object' as const, additionalProperties: true }, installedAt: { type: 'string' as const, format: 'date-time' as const }, updatedAt: { type: 'string' as const, format: 'date-time' as const }, }, -- 2.51.2