diff --git a/tools/docs/config.ts b/tools/docs/config.ts
index cac650c7101e8e3eb0face091bc8c69b8f265ddf..ef900be70a0bddb81f96fc1a841cddcc1c6f73bd 100644
--- a/tools/docs/config.ts
+++ b/tools/docs/config.ts
@@ -121,7 +121,10 @@ function genTable(obj: [string, string][], type: string, def: any): string {
         el[1] = `<code>${el[1]}</code>`;
       }
       // objects and arrays should be printed in JSON notation
-      if ((type === 'object' || type === 'array') && el[0] === 'default') {
+      if (
+        (type === 'object' || type === 'array') &&
+        (el[0] === 'default' || el[0] === 'additionalProperties')
+      ) {
         // only show array and object defaults if they are not null and are not empty
         if (Object.keys(el[1] ?? []).length === 0) {
           return;