diff --git a/tools/docs/config.ts b/tools/docs/config.ts index cac650c7101e8e..ef900be70a0bdd 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] = `${el[1]}`; } // 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;