From ea5e20ebb1fd7108a70800514b28eba92c27f3a5 Mon Sep 17 00:00:00 2001 From: Ben Langfeld <blangfeld@powerhrg.com> Date: Tue, 13 Feb 2024 02:51:24 -0300 Subject: [PATCH] fix(schema): Correct schema for descriptions (#27260) --- tools/docs/schema.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tools/docs/schema.ts b/tools/docs/schema.ts index f02b13632e..293e713af9 100644 --- a/tools/docs/schema.ts +++ b/tools/docs/schema.ts @@ -91,9 +91,21 @@ function addChildrenArrayInParents(): void { type: 'object', properties: { description: { - type: 'string', - description: - 'A custom description for this configuration object', + oneOf: [ + { + type: 'array', + items: { + type: 'string', + description: + 'A custom description for this configuration object', + }, + }, + { + type: 'string', + description: + 'A custom description for this configuration object', + }, + ], }, }, }, -- GitLab